<?php
if (1)
{
	echo '111';
    /*------------------------------------------------------ */
    //-- 
    /*------------------------------------------------------ */
    include('includes/cls_json.php');

    $address_id = intval($_POST['address_id'])>0?intval($_POST['address_id']):0;

    $sql="update ".$ecs->table("users")." set address_id='$address_id'  where user_id='".$_SESSION['user_id']."'";
	$smarty->assign("consignee",$consignee);
	/* 取得每个收货地址的省市区列表 */
        $province_list = array();
        $city_list = array();
        $district_list = array();
        $consignee['country']  = isset($consignee['country'])  ? intval($consignee['country'])  : 0;
        $consignee['province'] = isset($consignee['province']) ? intval($consignee['province']) : 0;
        $consignee['city']     = isset($consignee['city'])     ? intval($consignee['city'])     : 0;
		$province_list = get_regions(1, $consignee['country']);
        $city_list     = get_regions(2, $consignee['province']);
        $district_list = get_regions(3, $consignee['city']);
        $smarty->assign('province_list', $province_list);
        $smarty->assign('city_list',     $city_list);
        $smarty->assign('district_list', $district_list);

	$smarty->assign("consignee",$consignee);